import { PagerType } from "@/types";
import { get, post } from "./request";

export const getStrategyApi = (params: PagerType) => get("/fixtures", params);
export const getOnlineStrategy = (params: PagerType) =>
  get("/strategy_onway", params);
export const getStrategyMonitorApi = () => get("/strategy_monitor");
export const getLeaguesApi = (params: PagerType) => get("/leagues", params);

export const registerApi = (params) => post("/user/register", params);
export const loginApi = (params) => post("/user/login", params);
export const logoutApi = (id) => get("/user/logout", { id });
export const getUserInfoApi = (id) => get("/user/userinfo", { id });
export const updateUserApi = (params) => post("/user/update", params);
